﻿<%@ Page Title="" Language="C#" MasterPageFile="~/layout/CommonM.Master" AutoEventWireup="true" CodeBehind="BookManager.aspx.cs" Inherits="Comm.Web.View.BookManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="placeHead" runat="server"> 
    <script>
        $("._divHide").hide();
    </script>
<%--    <script src="../Js/jquery.easyui.min.js"></script>--%>
    <script src="../Js/PageBar.js"></script>
    <script src="../Js/bookmanager.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="placeSearch" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="placeContent" runat="server">
<div style="-webkit-box-flex: 1;">
<input type="hidden" value="<%=strValueHtml %>" id="strValueHtml" name="strValueHtml"/>
<%=strHtml %>
<!--页码条容器-->
 <div id="pageBar"></div>
<%--    子菜单面板--%>
  <div id="dialogSonModify" title="图书类别" class="easyui-window" data-options="modal:true,closed:true,iconCls:'icon-save',maximizable:false,minimizable:false" style="width:320px;height:auto;padding:10px">
        <form id="fSonModify">
        <input type="hidden" id="MgrSonId" name="MgrSonId" />
        <input type="hidden" id="MgPid" name="MgPid" />
        <table id="tbSonModify">
             <tr>
                <td>类别名称：</td>
                <td><select id="TypeName" name="TypeName" style="width: 200px;margin-left: 20px;margin-top: 10px;"><%=strOptsHtml %></select></td>
            </tr>
             <tr>
                <td>图书类别：</td>
                <td><input type="text" id="BookType" style="width: 186px;margin-left: 20px;margin-top: 10px;" name="BookType" /></td>
            </tr>
        </table>
        </form>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:right; height:25px;margin-right: 14px; line-height:25px;" onclick="$('#dialogSonModify').dialog('close')" type="submit" id="btndialogSonCancel" value="取消"/>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:left; height:25px; line-height:25px;" type="submit" id="btndialogSonOk" value="确定"/>
    </div>
  <div id="dialogModify1" title="图书类别" class="easyui-window" data-options="modal:true,closed:true,iconCls:'icon-save',maximizable:false,minimizable:false" style="width:320px;height:auto;padding:10px">
        <form id="fModify">
        <input type="hidden" id="MgrId" name="MgrId" />
        <input type="hidden" id="MgrPid" name="MgrPid" />
        <table id="tbModify">
             <tr>
                <td>类别名称：</td>
                <td><input type="text" id="MgrName" name="MgrName" style="width: 192px;margin-top: 10px;margin-left: 10px;" /></td>
            </tr>
            <tr id="sonId">
                <td>子菜单：</td>
                <td><select id="MgrPId" name="MgrPId" style="width: 206px;margin-left: 10px;margin-top: 10px;"><%--<%=strOpts %>--%></select></td>
            </tr>
        </table>
        </form>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:right; height:25px; line-height:25px; margin-right: 8px" onclick="$('#dialogModify1').dialog('close')" type="submit" id="btndialogCancel" value="取消"/>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:left; height:25px; line-height:25px;" type="submit" id="btndialogOk" value="确定"/>
    </div>
  <div id="dialogBookModify" title="图书详情列表" class="easyui-window" data-options="modal:true,closed:true,iconCls:'icon-save',maximizable:false,minimizable:false" style="width:500px;height:auto;padding:10px">
      <iframe name="myiframe" width="0" height="0"></iframe>
        <form id="fBookModify" runat="server" action="../Action/BookManager.ashx" target="myiframe" method="post" enctype="multipart/form-data">
        <input type="hidden" id="BookId" name="BookId" />
        <input type="hidden" name="type" id="type" value="upimg" />
        <table id="tbBookModify">
             <tr>
                <td>书名</td>
                <td><input type="text" id="BookName" style="width:400px;" name="BookName" /></td>
            </tr>
            <tr>
                <td>作者</td>
                <td><input type="text" id="Author" style="width:400px;" name="Author" /></td>
            </tr>
            <tr>
                <td>出版社</td>
                <td><select id="PublishId" name="PublishId"><%=strPubHtml %></select></td>
            </tr>
             <tr>
                <td>出版日期</td>
                <td><input type="text" id="PublishDate" style="width:400px;" name="PublishDate" /></td>
            </tr>
             <tr>
                <td>图片</td>
                <td><input class="easyui-filebox" data-options="prompt:'选择文件...'" name="file" id="file" style="width:78%" />
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;margin-top: 0px; margin-right: 37px;width:50px; float:right; height:27px; line-height:25px;" type="submit" id="btnupdown" value="上传"/>
                </td>
            </tr>
             <tr>
                <td>ISBN</td>
                <td><input type="text" id="ISBN" style="width:400px;" name="ISBN" /></td>
            </tr>
            <tr>
                <td>价格(元)</td>
                <td><input type="text" id="UnitPrice" style="width:400px;" name="UnitPrice" /></td>
            </tr>
             <tr>
                <td>内容简介</td>
                <td><textarea  id="CommentDes" style="width:400px; height:80px; max-height:80px;" name="CommentDes"></textarea></td>                 
            </tr>
            <tr>
                <td>作者描述</td>
                <td><textarea id="AuthorDes" style="width:400px;" name="AuthorDes"></textarea></td>

            </tr>
            <tr>
                <td>类别名称</td>
                <td><select id="TypeBookName" name="TypeBookName"><%=strCateHtml %></select></td>
            </tr>
        </table>
        </form>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:right; height:25px; line-height:25px;" onclick="$('#dialogBookModify').dialog('close')" type="submit" id="btndialogBookCancel" value="取消"/>
<input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:70px; float:left; height:25px; line-height:25px; cursor:pointer;" id="btndialogBookOk" value="确定"/>
</div></div>
</asp:Content>
